load("@rules_java//java:java_library.bzl", "java_library")

package(
    default_applicable_licenses = ["//:license"],
    default_testonly = True,
    default_visibility = [
        "//testing:__pkg__",
        "//testing/testrunner:__pkg__",
    ],
)

java_library(
    name = "expr_value_utils",
    srcs = ["ExprValueUtils.java"],
    tags = [
    ],
    deps = [
        "//common:cel_descriptors",
        "//common/internal:default_instance_message_factory",
        "//common/types",
        "//common/types:type_providers",
        "//common/values",
        "//common/values:cel_byte_string",
        "//runtime:unknown_attributes",
        "//testing/testrunner:registry_utils",
        "@cel_spec//proto/cel/expr:expr_java_proto",
        "@cel_spec//proto/cel/expr/conformance/proto2:test_all_types_java_proto",
        "@cel_spec//proto/cel/expr/conformance/proto3:test_all_types_java_proto",
        "@maven//:com_google_guava_guava",
        "@maven//:com_google_protobuf_protobuf_java",
        "@maven_android//:com_google_protobuf_protobuf_javalite",
    ],
)

java_library(
    name = "class_loader_utils",
    srcs = ["ClassLoaderUtils.java"],
    tags = [
    ],
    deps = [
        "@maven//:com_google_guava_guava",
        "@maven//:com_google_protobuf_protobuf_java",
        "@maven//:io_github_classgraph_classgraph",
    ],
)

java_library(
    name = "proto_descriptor_utils",
    srcs = ["ProtoDescriptorUtils.java"],
    tags = [
    ],
    deps = [
        "//common:cel_descriptors",
        "//testing/testrunner:class_loader_utils",
        "@maven//:com_google_guava_guava",
        "@maven//:com_google_protobuf_protobuf_java",
    ],
)
